package com.example.zookeeper.rmi.service;

import com.example.zookeeper.rmi.service.impl.HelloServiceImpl;

import java.rmi.RemoteException;

public class ZKRmiService2
{
    public static void main(String[] args) throws RemoteException
    {
        int port = 2099;
        Serviceprovider serviceprovider = new Serviceprovider();
        HelloServiceImpl helloService = new HelloServiceImpl();
        helloService.setPort(port);
        serviceprovider.publish("192.168.3.24", port, helloService);
    }
}
